@use '_reset.scss'as *;
@use '_fonts.scss'as *;
@use '_variables.scss'as *;

body {
  min-height: 100vh;
  background: var(--color-bg);
}

h1,
h2,
h3,
h4,
h5,
h6,
li,
span,
p,
a,
div,
button {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-primary);
}


h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-primary);
  line-height: 1.1;
}


.title-text {
  text-align: center;
  margin: $pd;
  font-size: 35px;
  font-size: clamp(35px, 17.8450704225px + 1.9309859155vw, 52px);
}

.title-text_left {
  text-align: left;
}

//////////////////////////////////////////////////////
 
.nav-bar {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: $pd;

  &__left {
    position: relative;
    display: flex;
    align-items: center;

    p {
      font-size: 16px;
      text-transform: uppercase;
      font-weight: 700;
    }
  }

  &__right {
    position: relative;
    display: flex;
    align-items: center; 
  }
}

//////////////////////////////////////////////////////////

.footer {
  padding: $pd;
  display: flex;
  justify-content: center;
}

//////////////////////////////////////////////////////////

.navigate-bar {
  position: relative;
  display: flex;
  gap: calc($padding / 4) + px;

  &__item {
    padding: calc($padding / 4) + px calc($padding / 2) + px;
    border-radius: 8px;
    transition-property: background-color, color;
    transition-duration: 0.25s;
    transition-timing-function: ease-out;

    a {
      color: inherit;
      white-space: nowrap;
    }

    &:hover,
    &_act {
      background-color: var(--color-bg-dark);
      color: var(--color-primary-light);
    }
  }

}

.baseline {
  position: relative;
  width: 100%;
  height: 1px;
  border: 1px solid var(--color-bg-dark);
}


@media (max-width: map_get($media-sizes, "lg")) {
  .nav-bar {
    flex-direction: column;
    justify-content: center;
    align-items: center;

    &__left > p {
      font-size: 40px;
    }
    &__right {
      width: 100%;
    }
  }

  .navigate-bar {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
}


//////////////////////////////////////////////////////// 


.index-block {
  position: relative;
  display: grid;
  height: 80vh;
  grid-template-columns: 50% 50%;
  grid-row: 1;

  &::after {
    content: '';
    position: absolute;
    top: calc(45% - 19px);
    left: calc(50% - 19px);
    height: 38px;
    width: 38px;
    background-color: var(--color-bg-dark);
    border-radius: 50%;
  }

  &__left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: calc($padding * 3) + px 0;

    h1 {
      font-size: 85px;
      font-size: clamp(50px, 30px + 3vw, 85px);
      font-weight: 700;
      margin-bottom: $pd;
    }

    h2 {
      text-transform: uppercase;
    }

    h3 {
      font-size: 17px;
      // padding-right: ;
      padding:  3px 40% 3px 0;

    }
  }

  &__right {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: calc($padding * 3) + px 0;
  }

  pre {
    display: block;
    position: relative;
    font-family: monospace;
    font-size: 9px;
    font-size: clamp(9px, 3.450704225px + 0.7vw, 12.5px);
    line-height: 110%;
    font-weight: 700;
    white-space: pre;
    text-align: center;
    // right: -70px;
  }
}

@media (max-width: map_get($media-sizes, "lg")) {
  .index-block {
    grid-template-columns: 100%;

    &__right,
    &__left {
      padding-bottom: 0;
    }

    &__right pre {
      right: 0;
      font-size: 11px;
    }

    &::after {
      display: none;
    }
  }
}

//////////////////////////////////////////////////////////////

.summary-block {

}

.table {
  width: 100%;
  td {
    padding: clamp(10px,2vw,36px) clamp(10px,2vw,28px);
    background-image: linear-gradient(to right, var(--color-bg-dark) 10%, rgba(255, 255, 255, 0) 10%);
    background-position: bottom;
    background-size: 8px 1px;
    background-repeat: repeat-x;
    font-size: 16px;
    font-size: clamp(16px, 14.5915492958px + 0.2816901408vw, 20px);
    p {
      font-size: 16px;
      font-size: clamp(16px, 14.5915492958px + 0.2816901408vw, 20px);
    }
  }

  tr:nth-child(2n) {
    background: var(--color-bg-light); /* Цвет фона */
   } 

  &_nowrap {
    white-space: nowrap;
  }
}

//////////////////////////////////////////////////////////////////

.biography-block {

}

.word-block {
  h2 {
    margin: $pd 0;
    font-weight: 700;
  }

  p, li {
    margin-bottom: 10px;
  }

  img {
    position: relative;
    display: block;
    max-height: 400px;
    max-width: 600px;
    width: 100%;
    object-fit: contain;
    margin: $pd auto;
  }

  .img-caption {
    font-style: italic;
    text-align: center;
    font-weight: 300;
  }

  li > a {
    font-style: italic;
    cursor: pointer;
    font-weight: 300;
    font-size: 18px;
    &:hover {
      text-decoration: underline;
    }
  }

  ul {
    padding-left: $pd;
  }
}